<?php get_header();?>
<div id="wrapper" class="container_12">
	<div class="grid_8">
		<?php if (have_posts()) : while (have_posts()) : the_post();
		?>
		<div <?php post_class() ?> >
			<?php
			if((function_exists('add_theme_support')) && ( has_post_thumbnail())) {
				the_post_thumbnail('single_post');
			}
			?>

			<?php if ( is_front_page() ) {
			?>
			<?php the_title('<h2 class="title">', '</h2>');?>
			<?php } else {?>
			<?php the_title('<h1 class="title">', '</h1>');?>
			<?php }?>

			<div class="entry">
				<?php the_content(__('(more...)', 'mt-white'));?>
				<?php wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', 'mt-white'), 'after' => '</div>'));?>
				<div class="clear"></div>
			</div>
		</div>
		<?php comments_template();?>
		<?php endwhile; else:?>
		<div class="post eror" >
			<div class="entry">
				<p>
					<?php _e('Sorry, no posts matched your criteria.', 'mt-white');?>
				</p>
			</div>
		</div>
		<?php endif;?>
	</div>
	<?php get_sidebar();?>
	<div class="clear"></div>
</div>
<?php get_footer();?>    